import icongen from 'icon-gen'
import path from 'path'

const resources = path.resolve('resources')
icongen(path.join(resources, './icon.svg'), path.join(resources, 'icons'), {
  report: true,
  ico: {
    name: 'icon',
    sizes: [16, 24, 32, 48, 64, 128, 256],
  },
  icns: {
    name: 'icon',
    sizes: [16, 32, 64, 128, 256, 512, 1024],
  },
  favicon: {
    name: 'favicon-',
    pngSizes: [16, 24, 32, 48, 64, 128, 256, 512, 1024]
  },
})
  .then((results) => {
    console.log(results)
  })
  .catch((err) => {
    console.error(err)
  })
